package bingo.portal.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Mar 3, 2009 1:59:03 PM Menu.java
 * Author:yangdongyu(yangdy@bingosoft.net)
 * ReadMe:门户的导航菜单,包括一级菜单和二级菜单
 * ChangeLog:
 */
public class Menu  implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;
	private String title;
	private String url;
	private String memo;
	private String icon;
	private String name;
	private Long parentId;
	private String projectId;
	private List<Menu> children = new ArrayList<Menu>();


	/** default constructor */
	public Menu() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}


	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Menu> getChildren() {
		return children;
	}

	public void setChildren(List<Menu> navigations) {
		this.children = navigations;
	}


	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parent_id) {
		this.parentId = parent_id;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public Menu addChild(Menu o){
		this.children.add(o);
		return this;
	}

}